package com.hgyc.mom.mes.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.annotation.DictColumn;
import com.hgyc.mom.core.annotation.TableDict;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 工艺组成
 * </p>
 *
 * @author fwj
 * @since 2025-07-01
 */
@Data
@TableName("mes_routing_process")
@Schema(name="工艺组成对象", description="工艺组成对象")
public class MesRoutingProcess implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "记录ID")
    private Long id;

    @Schema(description = "工艺路线ID")
    private Long routingId;

    @Excel(name = "工序ID")
    @Schema(description = "工序ID")
    @TableDict(table = "mes_process", key = "id" , columns = {
            @DictColumn(name ="process_code", alias = "processCode"),
            @DictColumn(name ="process_name", alias = "processName"),
    })
    private Long processId;

    @Excel(name = "序号")
    @Schema(description = "序号")
    private Integer orderNum;

    @Excel(name = "下工序ID")
    @Schema(description = "下工序ID")
    private Long nextProcessId;

    @Excel(name = "与下一道工序关系")
    @Schema(description = "与下一道工序关系")
    private String linkType;

    @Excel(name = "准备时间")
    @Schema(description = "准备时间")
    private Long defaultPreTime;

    @Excel(name = "等待时间")
    @Schema(description = "等待时间")
    private Long defaultSufTime;

    @Excel(name = "关键工序")
    @Schema(description = "关键工序")
    private String keyFlag;

    @Excel(name = "是否检验")
    @Schema(description = "是否检验")
    private String isCheck;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}